#include <SD.h>
#include <SPI.h>

#define CHIP_SELECT_PIN 10
#define AUDIO_INPUT_PIN A0


#define SERIAL_SETUP
#ifdef SERIAL_SETUP
#define print_info(msg) Serial.println(String("[INFO] ") + String((msg)))
#define print_err(err_msg) Serial.println(String("[ ERR] ") + String((err_msg)))
#endif

void setup() {
  // put your setup code here, to run once:

  Serial.begin(9600);
  while(!Serial){} // wait for serial port to connect. Needed for native USB.
  
  //init SD card
  print_info("Initializing SD card...");
  if(!SD.begin(CHIP_SELECT_PIN)){
    print_err("Initialize SD card error!");
    while(1){} // wait for SD card
  }
  print_info("Initializing SD card has finished.");
}

void loop() {
  // put your main code here, to run repeatedly:

}
